/**
 * 
 */
package com.fox.webapp.domain;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author yockii
 *
 */
@Document
public class Broker {

	@Id
	private ObjectId id;
	
	private String name;
	
	private String brokerDesc;
	
	private Boolean active;
	
	private String brokerImgUrl;
	
	private String regulationInfo;
	private Double minOpen;
	private Double minTrade;
	private Integer maxLeverage;
	private String spread;
	
	private Integer order;
	
	private String refLink;
	
	private String country;
	private String founded;
	private Boolean hasChinese;
	private Boolean hasChinaOffice;
	private String tradePlatform;
	private Integer maxTrade;
	private Boolean unionPay;
	private String tradeKind;
	private String contact;
	
	public String getIdStr(){
		return id == null ? null : id.toString();
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the brokerDesc
	 */
	public String getBrokerDesc() {
		return brokerDesc;
	}

	/**
	 * @param brokerDesc the brokerDesc to set
	 */
	public void setBrokerDesc(String brokerDesc) {
		this.brokerDesc = brokerDesc;
	}

	/**
	 * @return the id
	 */
	public ObjectId getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(ObjectId id) {
		this.id = id;
	}

	/**
	 * @return the active
	 */
	public Boolean getActive() {
		return active;
	}

	/**
	 * @param active the active to set
	 */
	public void setActive(Boolean active) {
		this.active = active;
	}
	/**
	 * @return the brokerImgUrl
	 */
	public String getBrokerImgUrl() {
		return brokerImgUrl;
	}
	/**
	 * @param brokerImgUrl the brokerImgUrl to set
	 */
	public void setBrokerImgUrl(String brokerImgUrl) {
		this.brokerImgUrl = brokerImgUrl;
	}
	/**
	 * @return the regulationInfo
	 */
	public String getRegulationInfo() {
		return regulationInfo;
	}
	/**
	 * @param regulationInfo the regulationInfo to set
	 */
	public void setRegulationInfo(String regulationInfo) {
		this.regulationInfo = regulationInfo;
	}
	/**
	 * @return the minOpen
	 */
	public Double getMinOpen() {
		return minOpen;
	}
	/**
	 * @param minOpen the minOpen to set
	 */
	public void setMinOpen(Double minOpen) {
		this.minOpen = minOpen;
	}
	/**
	 * @return the minTrade
	 */
	public Double getMinTrade() {
		return minTrade;
	}
	/**
	 * @param minTrade the minTrade to set
	 */
	public void setMinTrade(Double minTrade) {
		this.minTrade = minTrade;
	}
	/**
	 * @return the maxLeverage
	 */
	public Integer getMaxLeverage() {
		return maxLeverage;
	}
	/**
	 * @param maxLeverage the maxLeverage to set
	 */
	public void setMaxLeverage(Integer maxLeverage) {
		this.maxLeverage = maxLeverage;
	}
	/**
	 * @return the order
	 */
	public Integer getOrder() {
		return order;
	}
	/**
	 * @param order the order to set
	 */
	public void setOrder(Integer order) {
		this.order = order;
	}
	/**
	 * @return the refLink
	 */
	public String getRefLink() {
		return refLink;
	}
	/**
	 * @param refLink the refLink to set
	 */
	public void setRefLink(String refLink) {
		this.refLink = refLink;
	}
	/**
	 * @return the spread
	 */
	public String getSpread() {
		return spread;
	}
	/**
	 * @param spread the spread to set
	 */
	public void setSpread(String spread) {
		this.spread = spread;
	}
	/**
	 * @return the country
	 */
	public String getCountry() {
		return country;
	}
	/**
	 * @param country the country to set
	 */
	public void setCountry(String country) {
		this.country = country;
	}
	/**
	 * @return the founded
	 */
	public String getFounded() {
		return founded;
	}
	/**
	 * @param founded the founded to set
	 */
	public void setFounded(String founded) {
		this.founded = founded;
	}
	/**
	 * @return the hasChinese
	 */
	public Boolean getHasChinese() {
		return hasChinese;
	}
	/**
	 * @param hasChinese the hasChinese to set
	 */
	public void setHasChinese(Boolean hasChinese) {
		this.hasChinese = hasChinese;
	}
	/**
	 * @return the hasChinaOffice
	 */
	public Boolean getHasChinaOffice() {
		return hasChinaOffice;
	}
	/**
	 * @param hasChinaOffice the hasChinaOffice to set
	 */
	public void setHasChinaOffice(Boolean hasChinaOffice) {
		this.hasChinaOffice = hasChinaOffice;
	}
	/**
	 * @return the tradePlatform
	 */
	public String getTradePlatform() {
		return tradePlatform;
	}
	/**
	 * @param tradePlatform the tradePlatform to set
	 */
	public void setTradePlatform(String tradePlatform) {
		this.tradePlatform = tradePlatform;
	}
	/**
	 * @return the maxTrade
	 */
	public Integer getMaxTrade() {
		return maxTrade;
	}
	/**
	 * @param maxTrade the maxTrade to set
	 */
	public void setMaxTrade(Integer maxTrade) {
		this.maxTrade = maxTrade;
	}
	/**
	 * @return the unionPay
	 */
	public Boolean getUnionPay() {
		return unionPay;
	}
	/**
	 * @param unionPay the unionPay to set
	 */
	public void setUnionPay(Boolean unionPay) {
		this.unionPay = unionPay;
	}
	/**
	 * @return the tradeKind
	 */
	public String getTradeKind() {
		return tradeKind;
	}
	/**
	 * @param tradeKind the tradeKind to set
	 */
	public void setTradeKind(String tradeKind) {
		this.tradeKind = tradeKind;
	}
	/**
	 * @return the contact
	 */
	public String getContact() {
		return contact;
	}
	/**
	 * @param contact the contact to set
	 */
	public void setContact(String contact) {
		this.contact = contact;
	}
	
}
